/*
 * @name: **列表
 * @content:
 * @Author: joyce
 * @Date: 2020-05-20 11:11:55
 */

const express = require(`express`);
const router = express.Router();

const user_login = require("../model/user_login");
const draft = require("../model/draft");
const article = require("../model/article");
const Manager = require("../model/Manager");
const history = require("../model/history");
const commodity = require("../model/commodity");
const category = require("../model/category");
const label = require("../model/label");
const like = require("../model/like");
const comment = require("../model/comment");
const comfabulous = require("../model/comfabulous");
const exchange = require("../model/exchange");
const resource = require("../model/resource");
const problem = require("../model/problem");
const answer = require("../model/answer");
const vote = require("../model/vote");
const task = require("../model/task");
const completeTask = require("../model/completeTask");
const question = require("../model/question");
const question_reply = require("../model/question_reply");
const follow = require("../model/follow");
const voteDetail = require("../model/voteDetail");
const resourceOnlineDraft = require("../model/resourceOnlineDraft");
const answerOnlineDraft = require("../model/answerOnlineDraft");
const rule = require("../model/rule");
const departmentlabel = require("../model/departmentlabel");
const Advertisement = require("../model/Advertisement");
const resourcelabel = require("../model/resourcelabel");
const articleOnlineDraft = require("../model/articleOnlineDraft");
const recommend = require("../model/recommend");
const friend = require("../model/friend");
const chat = require("../model/chat");
const addressdata = require("../model/addressdata");
const help = require("../model/help");
const user_check = require("../model/user_check");


//封装
const ADDROUTER = require("../libs/request");
//三个参数 挂载路由 ， 表名 ， 表Model
ADDROUTER(router, "user_login", user_login);
ADDROUTER(router, "draft", draft);
ADDROUTER(router, "article", article);
ADDROUTER(router, "Manager", Manager);
ADDROUTER(router, "history", history);
ADDROUTER(router, "category", category);
ADDROUTER(router, "commodity", commodity);
ADDROUTER(router, "label", label);
ADDROUTER(router, "like", like);
ADDROUTER(router, "comment", comment);
ADDROUTER(router, "comfabulous", comfabulous);
ADDROUTER(router, "exchange", exchange);
ADDROUTER(router, "resource", resource);
ADDROUTER(router, "problem", problem);
ADDROUTER(router, "answer", answer);
ADDROUTER(router, "vote", vote);
ADDROUTER(router, "task", task);
ADDROUTER(router, "completeTask", completeTask);
ADDROUTER(router, "question", question);
ADDROUTER(router, "question_reply", question_reply);
ADDROUTER(router, "voteDetail", voteDetail);
ADDROUTER(router, "Advertisement", Advertisement);
ADDROUTER(router, "resourcelabel", resourcelabel);
ADDROUTER(router, "rule", rule);
ADDROUTER(router, "departmentlabel", departmentlabel);
ADDROUTER(router, "articleOnlineDraft", articleOnlineDraft);
ADDROUTER(router, "recommend", recommend);
ADDROUTER(router, "resourceOnlineDraft", resourceOnlineDraft);
ADDROUTER(router, "answerOnlineDraft", answerOnlineDraft);
ADDROUTER(router, "follow", follow);
ADDROUTER(router, "friend", friend);
ADDROUTER(router, "chat", chat);
ADDROUTER(router, "addressdata", addressdata);
ADDROUTER(router, "help", help);
ADDROUTER(router, "user_check", user_check);


module.exports = router;
